Define 3.10 version macros
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2013 07:07:57 +0000 (03:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2013 15:27:53 +0000 (11:27 -0400)
gdk/gdkversionmacros.h.in

index fa56f9fa324f819106b9377d555ea579f39b45e5..38cf70dd058cb5f67c5a96b41f5567cdf7659167 100644 (file)
  */
 #define GDK_VERSION_3_8         (G_ENCODE_VERSION (3, 8))
 
+/**
+ * GDK_VERSION_3_10:
+ *
+ * A macro that evaluates to the 3.10 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 3.10
+ */
+#define GDK_VERSION_3_10        (G_ENCODE_VERSION (3, 10))
+
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
 # define GDK_AVAILABLE_IN_3_8
 #endif
 
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_10
+# define GDK_DEPRECATED_IN_3_10               GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_3_10_FOR(f)        GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_3_10
+# define GDK_DEPRECATED_IN_3_10_FOR(f)
+#endif
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_10
+# define GDK_AVAILABLE_IN_3_10                GDK_UNAVAILABLE(3, 10)
+#else
+# define GDK_AVAILABLE_IN_3_10
+#endif
+
 #endif  /* __GDK_VERSION_MACROS_H__ */